<?
require_once('./lib/lib.gear.php');

$url = 'http://api.mixi-platform.com/2/voice/statuses/update';

$data = array(
             'status' => '{"title" : "件名","body" : "本文","recipients" : ["yee7djy9m7i6k"]}',
             );

$headers = array(
	"Host: api.mixi-platform.com",
    "Authorization: OAuth 60e26b39a574c1368050dba5513f67dbb78a2039",
	"Content-Length: ".strlen(http_build_query($data)),
	"Content-Type: application/x-www-form-urlencoded; charset=UTF-8",

);

$options = array('http' => array(
    'method' => 'POST',
    'header' => implode("\r\n", $headers),
    'content' => http_build_query($data),
));

$contents = file_get_contents($url, false, stream_context_create($options));

?>